/* 
 * Created on 2007-4-23
 * Last modified on 2007-4-23
 * Powered by YeQiangWei.com
 */
package com.yeqiangwei.commons.image;

public class ImageFactory {

	public static ImageOperate creator(int i) {
		ImageOperate image = null;
		switch (i) {
		case ImageOperate.JPEG:
			image = new ImageJpeg();
			break;
		case ImageOperate.GIF:
			image = new ImageGif();
			break;
		case ImageOperate.JMAGICK:
			image = new ImageMagic();
			break;
		default:
			image = new ImageJpeg();
		}
		return image;
	}
}
